/*    */ package com.behavior.memento;
/*    */ 
/*    */ public class Originator
/*    */ {
/*    */   private String state;
/*    */ 
/*    */   public String getState()
/*    */   {
/* 12 */     return this.state;
/*    */   }
/*    */ 
/*    */   public void setState(String state) {
/* 16 */     this.state = state;
/*    */   }
/*    */ 
/*    */   public Memento saveStateToMemento() {
/* 20 */     return new Memento(this.state);
/*    */   }
/*    */ 
/*    */   public void setStateFromMemento(Memento memento) {
/* 24 */     this.state = memento.getState();
/*    */   }
/*    */ }

/* Location:           C:\Users\lenovo\Desktop\DesignMode.jar
 * Qualified Name:     com.behavior.memento.Originator
 * JD-Core Version:    0.6.2
 */